﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanDoo.Oil.Core.DTOs
{
    public class CleanRecordRepInfo
    {
        [Required]
        public string storeNo { get; set; }

        [Required]
        public string terminalNo { get; set; }

        [Required]
        public int oilPort { get; set; }

        [Required]
        public int type { get; set; }

        [Required]
        public string operation { get; set; }

        [Required]
        public DateTime operationTime { get; set; }

        [Required]
        public int status { get; set; }
    }

    /// <summary>
    /// 清洗操作记录
    /// </summary>
    public class CleanRecordReqInfo
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Required]
        public string createTime { get; set; }

        /// <summary>
        /// 操作类型：1为换油桶，2为管道清洗
        /// </summary>
        [Display(Name = "操作类型")]
        [Required]
        public int operationType { get; set; }

        /// <summary>
        /// Guid
        /// </summary>
        [Display(Name = "Guid")]
        [Required]
        public long id { get; set; }

        /// <summary>
        /// 终端id
        /// </summary>
        [Display(Name = "终端id")]
        [Required]
        public string terminalId { get; set; }

        /// <summary>
        /// 油口id
        /// </summary>
        [Display(Name = "油口id")]
        [Required]
        public int oilPort { get; set; }

        /// <summary>
        /// 操作描述
        /// </summary>
        [Display(Name = "操作描述")]
        [Required]
        public string operation { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        [Display(Name = "操作时间")]
        [Required]
        public string operationTime { get; set; }

        /// <summary>
        /// 操作状态：1为成功，2为失败
        /// </summary>
        [Display(Name = "操作状态")]
        [Required]
        public int status { get; set; }
    }

}
